package com.ljz.dao;


import com.ljz.entity.Employ;

import java.util.List;
import java.util.Map;

public interface EmpDao {
    List<Employ> findAllEmps();
    int countEmpsByName(String ename);
    List<Employ> findEmpByName(String ename);
    List<Employ> findEmpByNameAndPage(Map<String,Object> map);
    Employ findEmpById(int id);
    int addEmp(Employ employ);
    int updateEmp(Employ employ);
    int deleteEmp(int id);
    List<Employ> findEnameByDeptIdAndSal(Employ employ);
    List<Employ> findEnameByDeptIdOrSal(Employ employ);
    int upEmp(Employ employ);
    int delEmpById(List<Integer> list);

}
